home *** CD-ROM | disk | FTP | other *** search
/ CD School House 9 / CD School House 9.0 - Wayzata Technology (1994).iso / pc / games / dos / puzzle / tmatch11 / install.bat < prev    next >
DOS Batch File  |  1993-09-16  |  1KB  |  52 lines

  1. echo off
  2. if '%1'=='' goto NoParam
  3. batext %1
  4. if errorlevel 99 goto NoDrive
  5. if errorlevel 1 goto MakeDir
  6. if errorlevel 0 goto DirOK
  7. :NoDrive
  8. echo The drive %1 does not exist!  Please try again.
  9. goto Abort
  10. :MakeDir
  11. echo Creating directory %1
  12. mkdir %1
  13. :DirOk
  14. echo ARCANUM Computing Installation
  15. echo ------------------------------
  16. echo Select program to install by number:
  17. echo  1) Tile Match complete installation (requires 560k free disk space)
  18. echo  2) Tile Match minimal installation (for 360k diskettes)
  19. echo  3) Abort installation
  20. echo ------------------------------
  21. echo Note:  select option 1 only if installing to a hard disk or high
  22. echo density (1.2 or 1.4 meg) diskette.
  23. batext
  24. if errorlevel 3 goto Abort
  25. if errorlevel 2 goto Install2
  26. if errorlevel 1 goto Install1
  27. goto Abort
  28. :Install1
  29. echo Installing Tile Match to %1
  30. match1 /e%1
  31. match2 /e%1
  32. batext cd %1
  33. echo Installation complete.  Type 'match' to run.
  34. goto Abort
  35. :Install2
  36. echo Installing Tile Match (minimal installation) to %1
  37. match1 /e%1
  38. batext cd %1
  39. del file_id.diz
  40. del vendor.txt
  41. echo Installation complete.  Type 'match' to run.
  42. goto Abort
  43. :NoParam
  44. echo -----------------------------------------------------------------------
  45. echo You need to specify where you want the program installed.  For example,
  46. echo    INSTALL A:
  47. echo will install it on your A: drive, or
  48. echo    INSTALL C:\GAMES
  49. echo will install to the \games directory on your C: drive.
  50. echo Try again...
  51. :Abort
  52.